package com.baselibrary.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 关忆北丶
 * @description:
 * @date :2020/9/22 14:15
 */
public class ReleaseTopicBean implements Parcelable {

    /**
     * success : true
     * data : [{"id":178,"name":"你觉得最好吃的下酒菜是什么？","desc":"有人逢酒必配花生米，有人终身难忘咸菜黄豆，有人喜欢软炸肝尖下酒，有人总惦记着新切的上好猪头肉\u2026\u2026你呢？","cover":"http://store.hankeapp.cn/storage/1920*1280*aae1e36a8b809f879a37310b9370d15b.jpg","count":25,"categoryId":40,"hotShow":1,"recommendShow":2,"userIds":[],"commentNum":0,"appetizer":0,"sort":37,"status":0,"ctime":1597040911557,"utime":1599061560350,"dynamicNum":33,"focusNum":8,"focusFans":false,"tagCategoryName":"下酒菜","hot":0,"userInfo":[],"isAuthor":3},{"id":179,"name":"酒局社交二三事儿","desc":"现代社会，不同于以往的人情社会，越来越多的出现陌生人接触的场景，局面一时不容易打开，但是有酒就不一样了","cover":"http://store.hankeapp.cn/storage/750*500*94336870f1fb5046b9e025e7b6fa8502.jpg","count":26,"categoryId":41,"hotShow":2,"recommendShow":3,"userIds":[],"commentNum":0,"appetizer":0,"sort":38,"status":0,"ctime":1597040911558,"utime":1599061560351,"dynamicNum":34,"focusNum":9,"focusFans":false,"tagCategoryName":"酒局社交","hot":0,"userInfo":[],"isAuthor":3},{"id":180,"name":"参加过最完美的酒局？","desc":"参加酒局时，你最欣赏什么样的人，最喜欢什么样的事儿？","cover":"http://store.hankeapp.cn/storage/1920*1280*8dd6413f078bed1bd596e3eb1d3f4228.jpg","count":27,"categoryId":42,"hotShow":3,"recommendShow":4,"userIds":[],"commentNum":0,"appetizer":0,"sort":39,"status":0,"ctime":1597040911559,"utime":1599061560352,"dynamicNum":35,"focusNum":10,"focusFans":false,"tagCategoryName":"酒局社交","hot":0,"userInfo":[],"isAuthor":3},{"id":181,"name":"酒是重要的中药，都能治疗啥？","desc":"都说酒是百药之首，这话一点也没错，你觉得呢？","cover":"http://store.hankeapp.cn/storage/1920*1278*dd7c058c52b2fd95feacd338330a9fa2.jpg","count":28,"categoryId":43,"hotShow":4,"recommendShow":5,"userIds":[],"commentNum":0,"appetizer":0,"sort":40,"status":0,"ctime":1597040911560,"utime":1599061560353,"dynamicNum":36,"focusNum":11,"focusFans":false,"tagCategoryName":"酒养生","hot":0,"userInfo":[],"isAuthor":3},{"id":182,"name":"夏天喝白酒有益身心健康","desc":"夏天到了，你是否总是全身乏力、食欲不振、口淡乏味、精神萎靡等症状，这就是中医所说的\u201c苦夏\u201d。\u201c苦夏\u201d可以喝白酒缓解，这事儿你觉得对吗？","cover":"http://store.hankeapp.cn/storage/1920*1278*145dfba8436aad04e9985289b82c9006.jpg","count":29,"categoryId":44,"hotShow":5,"recommendShow":6,"userIds":[],"commentNum":0,"appetizer":0,"sort":41,"status":0,"ctime":1597040911561,"utime":1599061560354,"dynamicNum":37,"focusNum":12,"focusFans":false,"tagCategoryName":"养生","hot":0,"userInfo":[],"isAuthor":3},{"id":183,"name":"七夕，猜猜牛郎今日杯中酒是啥滋味？","desc":"年年牛郎会织女，相逢时难别亦难，年年人相似，岁岁花不同，相思如何解，举杯邀明月。每年七夕牛郎织女都有此一会，总说相聚的欢喜，独不见分离的细雨，今日不妨大家一起来聊聊，欢聚过后，牛郎深夜独酌会喝什么酒吧。","cover":"http://store.hankeapp.cn/storage/1000*562*8b67c60b0a067b3779f2de730028f464.jpg","count":30,"categoryId":45,"hotShow":6,"recommendShow":7,"userIds":[],"commentNum":0,"appetizer":0,"sort":42,"status":0,"ctime":1597040911562,"utime":1599061560355,"dynamicNum":38,"focusNum":13,"focusFans":false,"tagCategoryName":"白酒文化","hot":0,"userInfo":[],"isAuthor":3},{"id":184,"name":"你在酒桌上听过哪些段子？","desc":"你酒后曾经发生过哪些错事儿，听说有人对着大树按门铃，你呢？","cover":"http://store.hankeapp.cn/storage/1920*1280*f8122700d26de1f3b05d397cb6227875.jpg","count":31,"categoryId":46,"hotShow":7,"recommendShow":8,"userIds":[],"commentNum":0,"appetizer":0,"sort":43,"status":0,"ctime":1597040911563,"utime":1599061560356,"dynamicNum":39,"focusNum":14,"focusFans":false,"tagCategoryName":"酒笑话","hot":0,"userInfo":[],"isAuthor":3},{"id":185,"name":"酒到底是怎么来的？","desc":"酒，从何而来，关于酒是怎么出现的说法太多了，你知道哪种？","cover":"http://store.hankeapp.cn/storage/640*472*14b74368fb51ef00963ff1902086c025.jpg","count":32,"categoryId":47,"hotShow":8,"recommendShow":9,"userIds":[],"commentNum":0,"appetizer":0,"sort":44,"status":0,"ctime":1597040911564,"utime":1599061560357,"dynamicNum":40,"focusNum":15,"focusFans":false,"tagCategoryName":"白酒文化","hot":0,"userInfo":[],"isAuthor":3},{"id":186,"name":"喝酒与什么最配？","desc":"有的人喜欢喝酒的时候唱歌，亦或者听歌，你喝酒的时候是唱歌还是听歌呢？","cover":"http://store.hankeapp.cn/storage/1920*1280*f80d48a09eb304b8c8da64660d3071fd.jpg","count":33,"categoryId":48,"hotShow":9,"recommendShow":10,"userIds":[],"commentNum":0,"appetizer":0,"sort":45,"status":0,"ctime":1597040911565,"utime":1599061560358,"dynamicNum":41,"focusNum":16,"focusFans":false,"tagCategoryName":"白酒文化","hot":0,"userInfo":[],"isAuthor":3},{"id":187,"name":"你喝过假酒吗，买过什么奇葩的假酒吗？","desc":"关于假酒你有啥经验要分享给酒友吗？","cover":"http://store.hankeapp.cn/storage/1920*1280*9c8f0602cf4193789f2a515966ddc315.jpg","count":34,"categoryId":49,"hotShow":10,"recommendShow":11,"userIds":[],"commentNum":0,"appetizer":0,"sort":46,"status":0,"ctime":1597040911566,"utime":1599061560359,"dynamicNum":42,"focusNum":17,"focusFans":false,"tagCategoryName":"鉴别","hot":0,"userInfo":[],"isAuthor":3},{"id":188,"name":"所谓\u201c酒桌文化\u201d，是糟粕，还是精华？","desc":"这两天，厦门商业银行新员工拒绝喝酒，被领导掌掴、同事威胁的事情引发了热议。在年长者心目中，酒是人情世故，是社交修罗场的利器，既可直抵对方的心窝，又能促成业务往来。而在年轻世代的眼里，酒不过是消遣的助兴剂。  同龄饭局上，除非自己想喝，不然没人拿着枪顶着你脑袋逼着。以上两种观点，你怎么看？","cover":"http://store.hankeapp.cn/storage/874*558*351272f551b4f24efe25e6bf44f5a77c.png","count":35,"categoryId":50,"hotShow":11,"recommendShow":12,"userIds":[],"commentNum":0,"appetizer":0,"sort":47,"status":0,"ctime":1597040911567,"utime":1599061560360,"dynamicNum":43,"focusNum":18,"focusFans":false,"tagCategoryName":"酒局社交","hot":0,"userInfo":[],"isAuthor":3}]
     * code : 0
     */

    private boolean success;
    private int code;
    private List<DataBean> data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {

        private int id;
        private String name;
        private String desc;
        private String cover;
        private String img;
        private int count;
        private int categoryId;
        private int hotShow;
        private int recommendShow;
        private int commentNum;
        private int appetizer;
        private int sort;
        private int status;
        private long ctime;
        private long utime;
        private int dynamicNum;
        private int focusNum;
        private boolean focusFans;
        private String tagCategoryName;
        private int hot;
        private int isAuthor;
        private int isHistory;
        //本地字断，是否被选中
        private boolean isSelect;
        public int viewNum;

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public int getIsHistory() {
            return isHistory;
        }

        public void setIsHistory(int isHistory) {
            this.isHistory = isHistory;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(int categoryId) {
            this.categoryId = categoryId;
        }

        public int getHotShow() {
            return hotShow;
        }

        public void setHotShow(int hotShow) {
            this.hotShow = hotShow;
        }

        public int getRecommendShow() {
            return recommendShow;
        }

        public void setRecommendShow(int recommendShow) {
            this.recommendShow = recommendShow;
        }

        public int getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(int commentNum) {
            this.commentNum = commentNum;
        }

        public int getAppetizer() {
            return appetizer;
        }

        public void setAppetizer(int appetizer) {
            this.appetizer = appetizer;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public long getCtime() {
            return ctime;
        }

        public void setCtime(long ctime) {
            this.ctime = ctime;
        }

        public long getUtime() {
            return utime;
        }

        public void setUtime(long utime) {
            this.utime = utime;
        }

        public int getDynamicNum() {
            return dynamicNum;
        }

        public void setDynamicNum(int dynamicNum) {
            this.dynamicNum = dynamicNum;
        }

        public int getFocusNum() {
            return focusNum;
        }

        public void setFocusNum(int focusNum) {
            this.focusNum = focusNum;
        }

        public boolean isFocusFans() {
            return focusFans;
        }

        public void setFocusFans(boolean focusFans) {
            this.focusFans = focusFans;
        }

        public String getTagCategoryName() {
            return tagCategoryName;
        }

        public void setTagCategoryName(String tagCategoryName) {
            this.tagCategoryName = tagCategoryName;
        }

        public int getHot() {
            return hot;
        }

        public void setHot(int hot) {
            this.hot = hot;
        }

        public int getIsAuthor() {
            return isAuthor;
        }

        public void setIsAuthor(int isAuthor) {
            this.isAuthor = isAuthor;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.name);
            dest.writeString(this.desc);
            dest.writeString(this.cover);
            dest.writeInt(this.count);
            dest.writeInt(this.categoryId);
            dest.writeInt(this.hotShow);
            dest.writeInt(this.recommendShow);
            dest.writeInt(this.commentNum);
            dest.writeInt(this.appetizer);
            dest.writeInt(this.sort);
            dest.writeInt(this.status);
            dest.writeLong(this.ctime);
            dest.writeLong(this.utime);
            dest.writeInt(this.dynamicNum);
            dest.writeInt(this.focusNum);
            dest.writeByte(this.focusFans ? (byte) 1 : (byte) 0);
            dest.writeString(this.tagCategoryName);
            dest.writeInt(this.hot);
            dest.writeInt(this.isAuthor);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.id = in.readInt();
            this.name = in.readString();
            this.desc = in.readString();
            this.cover = in.readString();
            this.count = in.readInt();
            this.categoryId = in.readInt();
            this.hotShow = in.readInt();
            this.recommendShow = in.readInt();
            this.commentNum = in.readInt();
            this.appetizer = in.readInt();
            this.sort = in.readInt();
            this.status = in.readInt();
            this.ctime = in.readLong();
            this.utime = in.readLong();
            this.dynamicNum = in.readInt();
            this.focusNum = in.readInt();
            this.focusFans = in.readByte() != 0;
            this.tagCategoryName = in.readString();
            this.hot = in.readInt();
            this.isAuthor = in.readInt();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeByte(this.success ? (byte) 1 : (byte) 0);
        dest.writeInt(this.code);
        dest.writeList(this.data);
    }

    public ReleaseTopicBean() {
    }

    protected ReleaseTopicBean(Parcel in) {
        this.success = in.readByte() != 0;
        this.code = in.readInt();
        this.data = new ArrayList<DataBean>();
        in.readList(this.data, DataBean.class.getClassLoader());
    }

    public static final Creator<ReleaseTopicBean> CREATOR = new Creator<ReleaseTopicBean>() {
        @Override
        public ReleaseTopicBean createFromParcel(Parcel source) {
            return new ReleaseTopicBean(source);
        }

        @Override
        public ReleaseTopicBean[] newArray(int size) {
            return new ReleaseTopicBean[size];
        }
    };
}
